package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Praise;
import cn.wolfcode.trip.base.query.CommentQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

public interface IPraiseService {
    /***
     * 新增或取消赞记录的方法
     * @param p
     */
    String saveOrCancel(Praise p);



    /**
     * 获取我所有点赞记录的分页数据
     * @param queryObject
     * @return
     */
    PageInfo query(QueryObject queryObject);

    Integer getPraiseTotal(CommentQueryObject qo);

    Integer getPraisesByUserId(Long id);
}
